package com.ican.domain.product;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.ican.domain.common.BaseEntity;

@Entity
@Table(name="t_product_category")
public class Category extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    private String name;
    private String code;
    private String description;
    private Integer langId;
    
    private String url;
    private Integer ruleId;
    private Date ncTime;
    private Integer ncStatus;//0： 未采集；1：采集中；2：采集成功；3：采集失败
    private Integer ncNum;
    private Integer ncNumNo;
    private Integer ncNumFail;
    private Date synTime;
    private Integer synStatus;//0：没有同步；1：同步中；2：同步成功；3：同步失败
    private Integer synCategoryId;
    
    @Column(name="name")
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    @Column(name="code")
    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    @Column(name="description")
    public String getDescription() {
        return description;
    }
    public void setDescription(String description) {
        this.description = description;
    }
    @Column(name="lang_id")
    public Integer getLangId() {
        return langId;
    }
    public void setLangId(Integer langId) {
        this.langId = langId;
    }
    @Column(name="url")
    public String getUrl() {
        return url;
    }
    public void setUrl(String url) {
        this.url = url;
    }
    @Column(name="rule_id")
    public Integer getRuleId() {
        return ruleId;
    }
    public void setRuleId(Integer ruleId) {
        this.ruleId = ruleId;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "nc_time", length = 19)
    public Date getNcTime() {
        return ncTime;
    }
    public void setNcTime(Date ncTime) {
        this.ncTime = ncTime;
    }
    @Column(name="nc_status")
    public Integer getNcStatus() {
        return ncStatus;
    }
    public void setNcStatus(Integer ncStatus) {
        this.ncStatus = ncStatus;
    }
    @Column(name="nc_num")
    public Integer getNcNum() {
        return ncNum;
    }
    public void setNcNum(Integer ncNum) {
        this.ncNum = ncNum;
    }
    @Column(name="nc_num_no")
    public Integer getNcNumNo() {
        return ncNumNo;
    }
    public void setNcNumNo(Integer ncNumNo) {
        this.ncNumNo = ncNumNo;
    }
    @Column(name="nc_num_fail")
    public Integer getNcNumFail() {
        return ncNumFail;
    }
    public void setNcNumFail(Integer ncNumFail) {
        this.ncNumFail = ncNumFail;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "syn_time", length = 19)
    public Date getSynTime() {
        return synTime;
    }
    public void setSynTime(Date synTime) {
        this.synTime = synTime;
    }
    @Column(name="syn_status")
    public Integer getSynStatus() {
        return synStatus;
    }
    public void setSynStatus(Integer synStatus) {
        this.synStatus = synStatus;
    }
    @Column(name="syn_category_id")
    public Integer getSynCategoryId() {
        return synCategoryId;
    }
    public void setSynCategoryId(Integer synCategoryId) {
        this.synCategoryId = synCategoryId;
    }
}
